﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace ConfigCreate
{
    /// <summary>
    /// 设置组排序和宽高
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
    public class CreateDockPanelGroup : Attribute
    {
        /// <summary>
        /// 设置组排序和宽高
        /// </summary>
        public CreateDockPanelGroup(Dock dock)
        {
            this.Dock = dock;
        }

        /// <summary>
        /// 依靠方式
        /// </summary>
        public Dock Dock { get; set; } = Dock.Top;

        /// <summary>
        /// 组的宽度
        /// </summary>
        public double GroupWidth { get; set; } = double.NaN;

        /// <summary>
        /// 组的高度
        /// </summary>
        public double GroupHeight { get; set; } = double.NaN;

        /// <summary>
        /// 父容器Key（当Key为空时父容器就是大类别）
        /// </summary>
        public string? ParentKey { get; set; }
    }

}
